home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / stransport_scripts / stransport_lighting.lua
Encoding:
Text File  |  2007-01-25  |  6.2 KB  |  243 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_STRANSPORT_LIGHTING)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24.  
  25.  
  26. PT = Emitter.ParticleTypesParams[1]
  27. PT.IsEmitterLocked = false
  28. PT.DrawOrder = 2
  29. PT.Material = ENMAT_PARTICLE_LIGHT
  30.  
  31.  
  32. PT.TextureName = "stransport_effect_lighting.dds"
  33.  
  34.  
  35. PT.ParticlesPerSecond = 10.0;
  36. PT.InitialNumberOfParticles = 20.0;
  37. PT.BaseLifeTime = 1.0;
  38. PT.BaseLifeTimeVariance = 0.5;
  39. PT.BaseSpeed = 0.0;
  40. PT.BaseSpeedVariance = 0.0;
  41. PT.BaseAngle = 1.65;
  42. PT.BaseAngleVariance = 5.0;
  43. PT.BaseAngleSpeed = 1.0;
  44. PT.BaseAngleSpeedVariance = 0.1;
  45. PT.BaseAngleSpeedDirection = 0;
  46. local vzbzd4 = D3DXVECTOR3:new(0.0,0.0,0.0)
  47. PT.BaseDirection = vzbzd4
  48. vzbzd4:delete()
  49. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  50. PT.BaseDirectionVariance = vzbzd5
  51. vzbzd5:delete()
  52. local vzbzd6 = D3DXVECTOR3:new(0,0,0)
  53. PT.BasePosition = vzbzd6
  54. vzbzd6:delete()
  55. local vzbzd7 = D3DXVECTOR3:new(10,10,10)
  56. PT.BasePositionVariance = vzbzd7
  57. vzbzd7:delete()
  58. PT.BaseSize = 17.0;
  59. PT.BaseSizeVariance = 0.4;
  60.  
  61. -- color over time
  62. PT.ColorOverTimeR[1].TimePercent = 0.0;
  63. PT.ColorOverTimeR[1].Value = 0.5;
  64. PT.ColorOverTimeG[1].TimePercent = 0.0;
  65. PT.ColorOverTimeG[1].Value = 0.5;
  66. PT.ColorOverTimeB[1].TimePercent = 0.0;
  67. PT.ColorOverTimeB[1].Value = 0.5;
  68.  
  69. PT.ColorOverTimeR[2].TimePercent = 1.0;
  70. PT.ColorOverTimeR[2].Value = 0.5;
  71. PT.ColorOverTimeG[2].TimePercent = 1.0;
  72. PT.ColorOverTimeG[2].Value = 0.5;
  73. PT.ColorOverTimeB[2].TimePercent = 1.0;
  74. PT.ColorOverTimeB[2].Value = 0.5;
  75.  
  76. -- transparency over time
  77. PT.TransparencyOverTime[1].TimePercent = 0.0;
  78. PT.TransparencyOverTime[1].Value = 0.0;
  79.  
  80. PT.TransparencyOverTime[2].TimePercent = 0.1;
  81. PT.TransparencyOverTime[2].Value = 0.4;
  82.  
  83. PT.TransparencyOverTime[3].TimePercent = 0.8;
  84. PT.TransparencyOverTime[3].Value = 0.1;
  85.  
  86. PT.TransparencyOverTime[4].TimePercent = 1.0;
  87. PT.TransparencyOverTime[4].Value = 0.0;
  88.  
  89.  
  90. -- size over time
  91. PT.SizeOverTime[1].TimePercent = 0.0;
  92. PT.SizeOverTime[1].Value = 1.0;
  93.  
  94. PT.SizeOverTime[2].TimePercent = 1.0;
  95. PT.SizeOverTime[2].Value = 3.5;
  96.  
  97.  
  98. -- Speed over time
  99. PT.SpeedOverTime[1].TimePercent = 0.0;
  100. PT.SpeedOverTime[1].Value = 0.0;
  101.  
  102. PT.SpeedOverTime[2].TimePercent = 1.0;
  103. PT.SpeedOverTime[2].Value = 0.0;
  104.  
  105. -- Tangent Speed over time
  106. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  107. PT.TangentSpeedOverTime[1].Value = 0.0;
  108.  
  109. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  110. PT.TangentSpeedOverTime[2].Value = 0.0;
  111.  
  112.  
  113. -- GravityAcceleration over time
  114. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  115. PT.GravityAccelerationOverTime[1].Value = 1.0;
  116.  
  117. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  118. PT.GravityAccelerationOverTime[2].Value = 1.0;
  119.  
  120. -- AngleSpeed over time
  121. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  122. PT.AngleSpeedOverTime[1].Value = 2.0;
  123.  
  124. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  125. PT.AngleSpeedOverTime[2].Value = 4.0;
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134. PT = Emitter.ParticleTypesParams[2]
  135. PT.IsEmitterLocked = false
  136. PT.DrawOrder = 1
  137. --PT.Material = ENMAT_SIMPLEPARTICLE
  138. PT.Material = ENMAT_PARTICLE_LIGHT
  139.  
  140.  
  141. --PT.TextureName = "environment_effect_explosion_smoke4.dds"
  142. --PT.TextureName = "cruiser_effect_rays.dds"
  143. PT.TextureName = "stransport_effect_rays.dds"
  144.  
  145.  
  146.  
  147.  
  148. PT.ParticlesPerSecond = 10.0;
  149. PT.InitialNumberOfParticles = 10.0;
  150. PT.BaseLifeTime = 0.8;
  151. PT.BaseLifeTimeVariance = 0.9;
  152. PT.BaseSpeed = 0.0;
  153. PT.BaseSpeedVariance = 0.0;
  154. PT.BaseAngle = 1.65;
  155. PT.BaseAngleVariance = 5.0;
  156. PT.BaseAngleSpeed = 1.0;
  157. PT.BaseAngleSpeedVariance = 1.0;
  158. PT.BaseAngleSpeedDirection = 0;
  159. local vzbzd8 = D3DXVECTOR3:new(0.0,0.0,0.0)
  160. PT.BaseDirection = vzbzd8
  161. vzbzd8:delete()
  162. local vzbzd9 = D3DXVECTOR3:new(0.0,0.0,0.0)
  163. PT.BaseDirectionVariance = vzbzd9
  164. vzbzd9:delete()
  165. local vzbzd10 = D3DXVECTOR3:new(0,0,0)
  166. PT.BasePosition = vzbzd10
  167. vzbzd10:delete()
  168. local vzbzd11 = D3DXVECTOR3:new(10,10,10)
  169. PT.BasePositionVariance = vzbzd11
  170. vzbzd11:delete()
  171. PT.BaseSize = 12.0;
  172. PT.BaseSizeVariance = 1.0;
  173.  
  174. -- color over time
  175. PT.ColorOverTimeR[1].TimePercent = 0.0;
  176. PT.ColorOverTimeR[1].Value = 0.5;
  177. PT.ColorOverTimeG[1].TimePercent = 0.0;
  178. PT.ColorOverTimeG[1].Value = 0.5;
  179. PT.ColorOverTimeB[1].TimePercent = 0.0;
  180. PT.ColorOverTimeB[1].Value = 0.8;
  181.  
  182. PT.ColorOverTimeR[2].TimePercent = 1.0;
  183. PT.ColorOverTimeR[2].Value = 0.5;
  184. PT.ColorOverTimeG[2].TimePercent = 1.0;
  185. PT.ColorOverTimeG[2].Value = 0.5;
  186. PT.ColorOverTimeB[2].TimePercent = 1.0;
  187. PT.ColorOverTimeB[2].Value = 0.8;
  188.  
  189. -- transparency over time
  190. PT.TransparencyOverTime[1].TimePercent = 0.0;
  191. PT.TransparencyOverTime[1].Value = 0.0;
  192.  
  193. PT.TransparencyOverTime[2].TimePercent = 0.1;
  194. PT.TransparencyOverTime[2].Value = 0.4;
  195.  
  196. PT.TransparencyOverTime[3].TimePercent = 0.5;
  197. PT.TransparencyOverTime[3].Value = 0.1;
  198.  
  199. PT.TransparencyOverTime[4].TimePercent = 1.0;
  200. PT.TransparencyOverTime[4].Value = 0.0;
  201.  
  202.  
  203. -- size over time
  204. PT.SizeOverTime[1].TimePercent = 0.0;
  205. PT.SizeOverTime[1].Value = 2.0;
  206.  
  207. PT.SizeOverTime[2].TimePercent = 1.0;
  208. PT.SizeOverTime[2].Value = 4.0;
  209.  
  210.  
  211. -- Speed over time
  212. PT.SpeedOverTime[1].TimePercent = 0.0;
  213. PT.SpeedOverTime[1].Value = 0.0;
  214.  
  215. PT.SpeedOverTime[2].TimePercent = 1.0;
  216. PT.SpeedOverTime[2].Value = 0.0;
  217.  
  218. -- Tangent Speed over time
  219. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  220. PT.TangentSpeedOverTime[1].Value = 0.0;
  221.  
  222. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  223. PT.TangentSpeedOverTime[2].Value = 0.0;
  224.  
  225.  
  226. -- GravityAcceleration over time
  227. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  228. PT.GravityAccelerationOverTime[1].Value = 1.0;
  229.  
  230. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  231. PT.GravityAccelerationOverTime[2].Value = 1.0;
  232.  
  233. -- AngleSpeed over time
  234. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  235. PT.AngleSpeedOverTime[1].Value = 1.0;
  236.  
  237. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  238. PT.AngleSpeedOverTime[2].Value = 2.0;
  239.  
  240.  
  241.  
  242.  
  243.